<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>test</title>
    <script src="./../jquery-1.12.4.js"></script>
</head>
<body>

    <table id="tab">
        <tbody>
            <tr>
                <td>第一行</td>
            </tr>
            <tr>
                <td>第二行</td>
            </tr>
            <tr>
                <td>第三行</td>
            <tr>
                <td>第四行</td>
            </tr>
            <tr>
                <td>第五行</td>
            </tr>
        </tbody>
    </table>

        <input type="checkbox" value="1" name="check" checked="checked">1
        <input type="checkbox" value="2" name="check"  />2
        <input type="checkbox" value="3" name="check" checked="checked" />3
        <input type="checkbox" value="4" name="check"   />4

<script>

   function jq() {
        var value=[];
        $('input[name="check"]:checked').each(function () {
            value.push( $(this).val())
        })
        alert(value)
   }

    $(document).ready(function () {
        $("#tab tr:odd").css("background-color","red");
    })
    
</script> 
</body>
</html>